package fristphase.day9_06.mysubmarinegame;

import javax.swing.*;

public class BattleShip extends SeaObject{
    int life = 5;
    BattleShip(){
        super(60,30,100,150-26,6);
    }

    public void move(){
    }
    public ImageIcon getImage(){
        return Images.battleShip;
    }
    public Bomb shootBomb(){
        return new Bomb(x,y);
    }
    public void leftMove(){
        x -= speed;
    }
    public void rightMove(){
        x += speed;
    }
    public void addLife(int life){
        this.life += life;
    }
    public void subtractLife(){
        this.life -= 1;
    }
    public int getLife(){
        return life;
    }
}
